SheetMC Core
Toggle table of contents
0.0.1
jvm
Platform filter
jvm
Switch theme
Search in API
SheetMC Core
SheetMC Core
/
org.sheetmc.core
Package-level
declarations
Types
Functions
Types
Outcome
Link copied to clipboard
sealed
interface
Outcome
<
out
T
>
Functions
exception
Or
Null
Link copied to clipboard
fun
<
T
>
Outcome
<
T
>
.
exceptionOrNull
(
)
:
Throwable
?
failure
Link copied to clipboard
fun
failure
(
throwable
:
Throwable
)
:
Outcome.Failure
fun
failure
(
message
:
String
,
throwable
:
Throwable
?
=
null
)
:
Outcome.Failure
flat
Map
Link copied to clipboard
inline
fun
<
T
,
R
>
Outcome
<
T
>
.
flatMap
(
transform
:
(
T
)
->
Outcome
<
R
>
)
:
Outcome
<
R
>
fold
Link copied to clipboard
inline
fun
<
T
,
R
>
Outcome
<
T
>
.
fold
(
onSuccess
:
(
T
)
->
R
,
onFailure
:
(
String
,
Throwable
?
)
->
R
)
:
R
get
Or
Null
Link copied to clipboard
fun
<
T
>
Outcome
<
T
>
.
getOrNull
(
)
:
T
?
map
Link copied to clipboard
inline
fun
<
T
,
R
>
Outcome
<
T
>
.
map
(
transform
:
(
T
)
->
R
)
:
Outcome
<
R
>
map
Catching
Link copied to clipboard
inline
fun
<
T
,
R
>
Outcome
<
T
>
.
mapCatching
(
transform
:
(
T
)
->
R
)
:
Outcome
<
R
>
map
Failure
Link copied to clipboard
inline
fun
<
T
>
Outcome
<
T
>
.
mapFailure
(
transform
:
(
Outcome.Failure
)
->
Outcome.Failure
)
:
Outcome
<
T
>
recover
Link copied to clipboard
inline
fun
<
T
>
Outcome
<
T
>
.
recover
(
recoverBlock
:
(
Outcome.Failure
)
->
T
)
:
Outcome
<
T
>
recover
Catching
Link copied to clipboard
inline
fun
<
T
>
Outcome
<
T
>
.
recoverCatching
(
recoverBlock
:
(
Outcome.Failure
)
->
T
)
:
Outcome
<
T
>
run
Catching
Outcome
Link copied to clipboard
inline
fun
<
T
>
runCatchingOutcome
(
block
:
(
)
->
T
)
:
Outcome
<
T
>
run
Catching
Outcome
Link copied to clipboard
inline
fun
<
T
>
T
.
runCatchingOutcome
(
block
:
(
)
->
T
)
:
Outcome
<
T
>
success
Link copied to clipboard
fun
success
(
)
:
Outcome.Success
<
Boolean
>
fun
<
T
>
success
(
value
:
T
)
:
Outcome.Success
<
T
>
inline
fun
<
T
>
success
(
block
:
(
)
->
T
)
:
Outcome.Success
<
T
>
to
Outcome
Link copied to clipboard
fun
<
T
>
Result
<
T
>
.
toOutcome
(
)
:
Outcome
<
T
>
to
Result
Link copied to clipboard
fun
<
T
>
Outcome
<
T
>
.
toResult
(
)
:
Result
<
T
>